import axios from '~/axios'

// 添加交易申请审批文件
export function addTradeApplicationApproveFileApi(data) {
    return axios.post('/basic/lindi/tradeApplicationApproveFile/addTradeApplicationApproveFile', data)
}

// 删除交易申请审批文件
export function deleteTradeApplicationApproveFileByApproveFileIdApi(approveFileId) {
    return axios({
        method: 'DELETE',
        url: '/basic/lindi/tradeApplicationApproveFile/deleteTradeApplicationApproveFileByApproveFileId',
        params: {
            approveFileId: approveFileId
        }
    })
}

// 修改交易申请审批文件
export function updateTradeApplicationApproveFileByApproveFileIdApi(data) {
    return axios.put('/basic/lindi/tradeApplicationApproveFile/updateTradeApplicationApproveFileByApproveFileId', data)
}

// 分页查询交易申请审批文件列表
export function getPageTradeApplicationApproveFileListApi(params) {
    return axios({
        method: 'GET',
        url: '/basic/lindi/tradeApplicationApproveFile/getPageTradeApplicationApproveFileList',
        params: params
    })
}

// 根据审批文件ID查询交易申请审批文件详情
export function getTradeApplicationApproveFileByApproveFileIdApi(approveFileId) {
    return axios.get(`/basic/lindi/tradeApplicationApproveFile/getTradeApplicationApproveFileByApproveFileId/${approveFileId}`)
}